import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Table from './views/nav1/Table.vue'
import echarts from './views/charts/echarts.vue'

//===================我的配置======================//
import Department from './views/org/Department.vue'
import Employee from "./views/org/Employee";
import SystemDictionaryType from "./views/org/SystemDictionaryType";
import SystemDictionaryDetail from "./views/org/SystemDictionaryDetail";
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import SearchMasterMsgPending from "../pet/SearchMasterMsgPending";
import SearchMasterMsgProcessed from "../pet/SearchMasterMsgProcessed";
import Pet from "../pet/Pet";
import AdoptOrder from "./views/order/AdoptOrder";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        leaf: true,//只有一个节点
        iconCls: 'el-icon-s-home',
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' }, // component和import导入的名字一样
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/', component: Table, name: '权限管理' },
            { path: '/log', component: Table, name: '系统日志' },
            { path: '/dictionary/type', component: SystemDictionaryType, name: '数据字典类型' },
            { path: '/dictionary/detail', component: SystemDictionaryDetail, name: '数据字典详细信息' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物模块',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/searchMasterMsgPending', component: SearchMasterMsgPending, name: '待处理消息' },
            { path: '/searchMasterMsgProcessed', component: SearchMasterMsgProcessed, name: '已处理消息' },
            { path: '/pet', component: Pet, name: '宠物管理' },
            { path: '/petType', component: Table, name: '宠物类型管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/adoptOrder', component: AdoptOrder, name: '领养订单' },
            { path: '/acquisitionOrder', component: AdoptOrder, name: '收购订单' },
            { path: '/productOrder', component: AdoptOrder, name: '服务订单' },
            { path: '/goodsOrder', component: AdoptOrder, name: '商品订单' },
            { path: '/rechargeOrder', component: AdoptOrder, name: '充值订单' }
        ]
    }
];

export default routes;